﻿using System;
using YunZuan.Models.Attributes;
using YunZuan.Models.Entities;

namespace YunZuan.Models
{
    [Table(TableName = "yz_rapnet", PrimaryKey = "ID")]
    public class Rapnet: BaseEntity
    { 
  
        #region Private Properties
        private int? id;
        private string rapName;
        private string rapPwd;
        private int? upType;
        private DateTime? createTime; 

        #endregion

        #region Public Properties
        /// <summary>
        /// ID.
        /// </summary>
        [Column(IsAutoIncrement = true)]
        public int? ID
        {
            get
            {
                return id;
            }
            set
            {
                this.ChangeNotify<int?>("ID", value, ref id);
            }
        }

        /// <summary>
        /// rapName.
        /// </summary>
        public string RapName
        {
            get
            {
                return rapName;
            }
            set
            {
                this.ChangeNotify<string>("RapName", value, ref rapName);
            }
        }

        /// <summary>
        /// RapPwd.
        /// </summary>
        public string RapPwd
        {
            get
            {
                return rapPwd;
            }
            set
            {
                this.ChangeNotify<string>("RapPwd", value, ref rapPwd);
            }
        }
         
 
        /// <summary>
        /// 上传类型（覆盖0，追加1） 数据库默认追加
        /// </summary>
        public int? UpType
        {
            get
            {
                return upType;
            }
            set
            {
                this.ChangeNotify<int?>("UpType", value, ref upType);
            }
        }

        /// <summary>
        /// CreateTime.
        /// </summary>
        public DateTime? CreateTime
        {
            get
            {
                return createTime;
            }
            set
            {
                this.ChangeNotify<DateTime?>("CreateTime", value, ref createTime);
            }
        }
 

        #endregion
    }
}
